package tree;

public class BSTTest {
    public static void main(String[] args) {
        BST<Integer> bst=new BST<>();
        int[] nums={20,10,40,3,12,30,60,1,2,11,13,25,28,50,70 };
        for(int num:nums){
            bst.add(num);
        }

        System.out.println(bst);
        bst.preOrder();
        System.out.println("====");
//
        bst.inOrder();
        System.out.println("=======");

        bst.afterOrder();
        System.out.println();

    }
}
